package com.atlc.preview.project.model;

import java.io.Serializable;

/**
 * @author 梁冲
 * @version 1.0
 * @email 1357042069@qq.com
 * @date 2021/12/04
 */
public class Code implements Serializable {
    private String code;

    private String params;

    private String msg;

    public Code(String code, String params, String msg) {
        this.code = code;
        this.params = params;
        this.msg = msg;
    }

    public Code() {
    }

    public String getCode() {
        if (code == null)
            return "";
        return code;
    }

    public String getParams() {
        return params;
    }

    public String getMsg() {
        return msg;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public void setParams(String params) {
        this.params = params;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    @Override
    public String toString() {
        return "Code{" +
                "code=" + code +
                ", params='" + params + '\'' +
                ", msg='" + msg + '\'' +
                '}';
    }
}
